import {DefaultTheme} from 'vitepress'

export const zhThemeConfig: DefaultTheme.Config = {
  // https://vitepress.dev/reference/default-theme-config
  nav: [
    {text: '首页', link: '/zh/'},
    {text: '参考', link: '/zh/jvyou/introduce'}
  ],
  sidebar: {
    "/zh/jvyou": [
      {
        text: '简介',
        items: [
          {text: '简介', link: '/zh/jvyou/introduce'},
          {text: '持续集成', link: '/zh/jvyou/introduce/continuous-integration'},
        ]
      },
      {
        text: '开始',
        items: [
          {text: '快速开始', link: '/zh/jvyou/start/getting-started'},
          {text: '安装', link: '/zh/jvyou/start/install'},
          {text: '测试', link: '/zh/jvyou/start/test'},
        ]
      },
      {
        text: '最佳实践',
        items: [
          {text: 'Mapper 驱动 SQL', link: '/zh/jvyou/practices/mapper-drives-sql'},
          {text: 'Mapper 结合 XML', link: '/zh/jvyou/practices/mapper-combined-with-xml'},
          {text: '使用 XML 组装 SQL', link: '/zh/jvyou/practices/assembling-sql-with-xml'},
          {text: '结果集映射', link: '/zh/jvyou/practices/result-set-map'},
          {text: '自定义数据源', link: '/zh/jvyou/practices/data-source'},
          {text: '自定义插件', link: '/zh/jvyou/practices/custom-plugin'},
          {text: '二级缓存', link: '/zh/jvyou/practices/l2-cache'},
        ]
      },
      {
        text: '指南',
        items: [
          {text: 'SqlSession', link: '/zh/jvyou/guide/sql-session'},
          {text: 'SqlSessionFactory', link: '/zh/jvyou/guide/sql-session-factory'},
          {text: 'SqlSessionFactoryBuilder', link: '/zh/jvyou/guide/sql-session-factory-builder'},
          {text: 'MappedStatement', link: '/zh/jvyou/guide/mapped-statement.md'},
        ]
      },
      {
        text: '版本',
        items: [
          {text: '从1.x迁移到2.x', link: '/zh/jvyou/version/upgrade-to-2'},
        ]
      }
    ]
  }
}
